package edu.spec.wfl.week03.class2;

public class Test {
    public static void main(String[] args) {
        Student s1 = new Student("猪小明", "111", "1111");
        Student s2 = new Student("毛台", "222", "2222");
        Student s3 = new Student("蘑菇头", "333", "3333");
        Student s4 = new Student("自己", "444", "4444", "15", "26");

        Student[] Name = new Student[4];
        Name[0] = s1;
        Name[1] = s2;
        Name[2] = s3;
        Name[3] = s4;

        for (Student a : Name) {
            System.out.println(a.xm);
        }
    }
}